<template>
	<view>
		<view class="content">
			<u-icon v-if="type==1" name="checkmark-circle-fill" color="#302C29" size="80"></u-icon>
			<u-icon v-if="type==2" name="close-circle-fill" color="#302C29" size="80"></u-icon>
			<view  class="txt">{{type==1?'支付成功':'支付失败'}}</view>
	

			<view class="ubtns">
				<u-button style="margin: 150rpx 25rpx 0;width: 700rpx;" @click="onClickReservation" color="#302C29"
					shape="circle" text="返回首页"></u-button>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		data
	} from '../../uni_modules/uview-ui/libs/mixin/mixin'
	import {
		parseTime
	} from '../../utils/ruoyi.js'
	export default {
		data() {
			return {
				type: 1, 
			}
		},
		onLoad(opt) {
			console.log('reserve', opt)
			this.type = opt.type;
		},
		methods: {
			
			// 点击扫码预约，调用接口提示预约成功，提示立即支付
			onClickReservation() {
					uni.switchTab({
						url:'/pages/3d/index'
					})
			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #f8f8f8;
	}

	.content {
		padding-top: 100rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.txt {
			line-height: 100rpx;
		}
	}

	.listBox {
		border-radius: 10rpx;
		width: 700rpx;
		overflow: hidden;
		padding: 20rpx 0;
		background: #fff;
		margin: 25rpx 25rpx 0;

		.list {

			.Lcont {
				padding: 0 20rpx;
				line-height: 60rpx;
				font-size: 26rpx;

				.fw {
					font-weight: bold;
				}

				.conts {
					color: #666;
				}
			}
		}
	}
</style>